Component({
    properties: {
        datas: {
            type: null
        },
        component_id: {
            type: null
        },
        member_item: {
            type: null
        },
        isMemberGrade: {
            type: null
        },
        validity_value: {
            type: null
        }
    },
    data: {
        emptyImage: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/image.png",
        nickname: "昵称",
        uid: "666",
        inviteCode: "888888",
        level_name: "普通会员"
    },
    lifetimes: {
        attached: function() {},
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {},
    pageLifetimes: {
        show: function() {},
        hide: function() {},
        resize: function() {}
    },
    methods: {
        TapEdit: function() {
            this.triggerEvent("TapEditChild");
        },
        copybtn: function(e) {
            var t = e.target.dataset.num;
            wx.setClipboardData({
                data: t || "",
                success: function(e) {
                    wx.showToast({
                        icon: "none",
                        title: "复制成功",
                        duration: 1e3
                    });
                }
            });
        },
        gotoMemberGrade: function() {
            this.data.isMemberGrade && "1" == this.data.datas.grade_type ? wx.navigateTo({
                url: "/packageB/member/MemberGradeList/MemberGradeList"
            }) : "2" == this.data.datas.grade_type ? this.data.datas.levelname || this.data.datas.isagent ? wx.navigateTo({
                url: "/packageB/member/income/teamAgentCenter/teamAgentCenter"
            }) : wx.navigateTo({
                url: "/packageA/member/extension/ExtensionApply/ExtensionApply"
            }) : "3" == this.data.datas.grade_type && (this.data.datas.levelname || this.data.datas.isagent ? wx.navigateTo({
                url: "/packageA/member/distribution/distribution"
            }) : wx.navigateTo({
                url: "/packageA/member/extension/ExtensionApply/ExtensionApply"
            }));
        }
    }
});